import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    //add by yu
    registerSelfPlugin()
    
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
    
    // 注册自定义的插件
    func registerSelfPlugin() {
        //展示互动直播
        GenseeLivePlugin.register(with: registrar(forPlugin: "GenseeLivePlugin")!)
        //内购
        ApplePurchasePlugin.register(with: registrar(forPlugin: "ApplePurchasePlugin")!)
    }

    
}
